﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WT.Sockert.Interfaces
{
   public interface ISocketConnection
    {
        string Name { get; set; }
        Action OnOpen { get; set; }
        Action OnClose { get; set; }
        Action<string> OnMessage { get; set; }
        Action<Exception> OnError { get; set; }       
        Task Send(byte[] message);
        ISocketConnectionInfo ConnectionInfo { get; }
    }
}
